package com.chuantou.yuba.util;

import java.util.regex.Pattern;

public class Constants {

	public static final String EXTRA_USER = "_user";

	public static final String EXTRA_DATA = "_data";

	public static final String EXTRA_ACTION = "_action";

	public static final String EXTRA_FORCE_LOGIN = "_force_login";

	public static final String EXTRA_TARGET_UID = "_target_uid";

	public static final String EXTRA_TITLE = "_title";

	public static final String EXTRA_URL = "_url";

	public static final String EXTRA_UID = "_uid";

	public static final String EXTRA_LOCATION = "_location";

	public static final String EXTRA_POSITION = "_position";

	public static final String EXTRA_SHOP = "_shop";

	public static final String EXTRA_PHONE = "_phone";

	public static final String EXTRA_SIZE = "_size";

	public static final int DEFAULT_PAGE_SIZE = 20;
	// 性别-男
	public static final int SEX_MALE = 2;
	// 性别-女
	public static final int SEX_FEMALE = 1;

	public static final Pattern EMAIL_ADDRESS = Pattern.compile("[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}" + "\\@" + "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}" + "("
			+ "\\." + "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,25}" + ")+");

	public static final Pattern PHONE_PATTERN = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,2,5-9])|17[0-9])\\d{8}$");

	public static final int REQUEST_CODE_PICK_PHOTO = 10001;

	public static final int REQUEST_CODE_TAKE_PHOTO = 10002;

	public static final long DEFAULT_CACHE_EXPIRED_TIME = 10 * 60 * 1000;

	public static final String INTENT_ACTION_SEND_TRENDS = "com.chuantou.yuba.sendtrends";

	public static final String INTENT_ACTION_SEND_FISHING = "com.chuantou.yuba.sendfishing";

	public static final String INTENT_ACITON_FRIEND_CHANGED = "com.chuantou.yuba.friend_change";

	public static final String INTENT_ACITON_BLACK_LIST_CHANGED = "com.chuantou.yuba.black_list_changed";

	public static final String INTENT_ACITON_LOGIN = "com.chuantou.yuba.login";

	public static final String NEW_FRIENDS_USERNAME = "item_new_friends";
	public static final String GROUP_USERNAME = "item_groups";
	public static final String MESSAGE_ATTR_IS_VOICE_CALL = "is_voice_call";
	public static final String MESSAGE_ATTR_IS_VIDEO_CALL = "is_video_call";
	public static final String ACCOUNT_REMOVED = "account_removed";
	// 对方的昵称
	public static final String ATTR_TARGET_NICKNAME = "t_nickname";
	// 对方的头像
	public static final String ATTR_TARGET_AVATAR = "t_avatar";
	// 自己的昵称
	public static final String ATTR_NICKNAME = "nickname";
	// 自己的头像
	public static final String ATTR_AVATAR = "avatar";
	// 关注者昵称
	public static final String ATTR_FOLLOWER = "follower";
	// 关注者头像
	public static final String ATTR_FOLLOWER_AVATAR = "follower_avatar";
	// 关注者id
	public static final String ATTR_FOLLOWER_ID = "follower_id";
	public static final String MOB_APP_KEY = "89728c36c77c";

	public static final String MOB_APP_SECRET = "6d273b0a18a2032919af8f15014b1b99";

	/** 微信appid **/
	public static final String WX_APP_ID = "wxdbb3137f220a5dde";

	public static final String WX_APP_SECRET = "1c741eea3e2a70f8bcb8675635469c90";

	public static final String SIGN_KEY = "2mao17ud";
	
	public static final String QQ_APP_ID = "1104724685";
	
	public static final String QQ_APP_KEY = "M8GxFu4FSJloZbTv";

	public static final String PLATFORM_WX = "1";

	public static final String PLATFORM_QQ = "2";

	/** 上次发送验证码的时间 **/
	public static long sLastSendVerifyCodeTime = 0;

	/** 默认使用中国区号 **/
	public static final String DEFAULT_COUNTRY_ID = "42";
}
